package Applets;
import java.awt.*;
import java.applet.Applet;

public class SetsizeApplet extends Applet 
{
  // Draw a big X
  // Author: Samuel N. Kamin, June 1, l996

    @Override
  public void init() 
  {
    // ensure the size we want
    setSize(100,300);
  }
 
    @Override
  public void paint (Graphics g) 
  {
     Dimension s = getSize();
     int x = s.width,
         y = s.height;
     g.drawLine(0, 0, x, y);
     g.drawLine(x, 0, 0, y);
     g.fillOval(x/2-10,y/2-10,20,20);
  }
}
